<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>捷易通区服管理</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
<#include "../template/include/assign.ftl">
<#include "../template/include/source.ftl">
<#include "../template/template_listPage.ftl">
    <link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        .page {
            float: right;
            padding-top: 15px;
            margin-right: 15px;
        }
    </style>


    <script type="text/javascript">
        $(document).ready(function () {
            $('#searchButton').click(
                    function () {
                        $('#currentPage_listForm').val('1');
                    }
            );

        <#if actionErrors?? && (actionErrors?size > 0)>
            $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
                modal:true, autoCloseTime:3000});
        </#if>

        });

    </script>
</head>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>捷易通区服管理&nbsp;<span class="pageInfo"></span></h1>
    </div>
    <form id="inputForm" class="validate" action="${web_base}/game/jpay!areaSync.htm" method="post">
        <div class="operateBar">
            <label>游戏编号：</label>
            <input type="text" name="gameId" value="<#if gameId??>${(gameId)!}</#if>"/>
            <input type="submit" class="addButton" value="区服同步"/>
        </div>
    </form>
<@pageList page=(page!) id="listForm" action="${web_base}/game/jpay!areaList.htm" query="jpayAreaQuery" isEmpty=true>
    <div class="operateBar">
        <label>查找：</label>
        产品编号：<input type="text" id="goodsId" name="jpayAreaQuery.goodsId"
                    value="<#if jpayAreaQuery??>${(jpayAreaQuery.goodsId)!}</#if>"/>
        区服编号：<input type="text" id="goodsName" name="jpayAreaQuery.areaSrvCode"
                    value="<#if jpayAreaQuery??>${(jpayAreaQuery.areaSrvCode)!}</#if>"/>
        <input type="submit" id="searchButton" class="searchButton" value=""/>
    </div>
    <table class="listTable">
        <tr>
            <th>
                <span class="sort" name="goodsId">产品编号</span>
            </th>
            <th>
                <span class="sort" name="areaSrvCode">区服编号</span>
            </th>
            <th>
                <span class="sort" name="areaName">大区名称</span>
            </th>
            <th>
                <span class="sort" name="insertTime">录入时间</span>
            </th>
        </tr>

        <#if page?? && page.list?? && (page.list?size gt 0)>
            <#list page.list as obj>
                <tr>
                    <td>
                    ${(obj.goodsId)!}
                    </td>
                    <td>
                    ${(obj.areaSrvCode)!}
                    </td>
                    <td>
                        <#if obj.areaName?? && obj.areaName?length gt 25>
                        <#--//截取输出文字的长度-->
                        ${obj.areaName?substring(0,25)}...
                        <#else>
                        ${(obj.areaName)!}
                        </#if>
                    </td>

                    <td>
                    ${(obj.insertTime)!}
                    </td>
                </tr>
            </#list>
        </#if>
    </table>

    <#if page?? && page.list?? && (page.list?size <= 0)>
        <div class="noRecord">
            没有找到任何记录!
        </div>
    </#if>
</@pageList>
</div>

</body>
</html>